/************** init.html **************/
function query_myWorkplan(page) {
	sys_loading();
	var parm = $('#queryForm').serialize() + (page != null ? ('&page=' + page) : '');
	var url = create_url('myWorkplan-query');
	sys_record_parm('myWorkplan',parm);
	$.ajax({type:'POST', url:url, data:parm,
		success: function(result) {
			sys_loading_close();
			$('#resultList').html(result);
		}
	});
}


function save_myWorkplan() {
	var name = $('#name').val();
	if(name == null || name == ''){
		sys_msg('亲，还没有填名字哦！');
		return false;
	}
	var parm = $('#editForm').serialize();
	var url = create_url('myWorkplan-save');
	sys_submiting();
	$.ajax({type:'POST', url:url, data:parm,
		success: function(result) {
			sys_submiting_close();
			if (result == 'success') {
				sys_msg('操作成功!');
				sys_load_handle('myWorkplan');
			} else {
				sys_msg('操作失败！')
			}
		}
	});
}

